feat: Elasticsearch Connector with Framework SDK Integration #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement comprehensive Elasticsearch Connector with advanced architecture
Summary
This PR implements a full-featured Elasticsearch connector for the coco-server project, leveraging the framework project's Elastic SDK capabilities. The implementation includes sophisticated features for different deployment modes, performance optimization, and robust error handling.
Key Components Added:
plugin.go,client.go,config.go,reader.go,types.go)*_test.go)Architecture Highlights:
_seq_noand_primary_termbased incremental updatesReview & Testing Checklist for Human
go test -v ./plugins/connectors/elasticsearch/...passes without errorsRecommended Test Plan:
Diagram
%%{ init : { "theme" : "default" }}%% graph TB subgraph "Elasticsearch Connector" plugin["plugins/connectors/<br/>elasticsearch/<br/>plugin.go"]:::major-edit client["plugins/connectors/<br/>elasticsearch/<br/>client.go"]:::major-edit config["plugins/connectors/<br/>elasticsearch/<br/>config.go"]:::major-edit reader["plugins/connectors/<br/>elasticsearch/<br/>reader.go"]:::major-edit types["plugins/connectors/<br/>elasticsearch/<br/>types.go"]:::major-edit end subgraph "Test Files" pluginTest["plugin_test.go"]:::major-edit clientTest["client_test.go"]:::major-edit readerTest["reader_test.go"]:::major-edit integTest["integration_test.go"]:::major-edit end subgraph "Framework Dependencies" elasticSDK["framework/core/<br/>elastic/api.go"]:::context connectorHelper["plugins/connectors/<br/>helper.go"]:::context end subgraph "Core System" cocoYml["coco.yml"]:::minor-edit queue["framework/core/<br/>queue"]:::context end plugin --> client plugin --> reader plugin --> config reader --> types client --> elasticSDK plugin --> connectorHelper plugin --> queue pluginTest --> plugin clientTest --> client readerTest --> reader integTest --> plugin subgraph Legend L1["Major Edit"]:::major-edit L2["Minor Edit"]:::minor-edit L3["Context/No Edit"]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes
frameworkproject's comprehensive Elastic SDK with support for multiple ES versionscoco.ymlwith example deployment mode settings//go:build integrationtags for selective CI execution